Skip to content

status var preview#487

Merged
tomas-villagesql merged 2 commits into
mainfrom
tomas/status-vars-preview
May 15, 2026
Merged

status var preview#487
tomas-villagesql merged 2 commits into
mainfrom
tomas/status-vars-preview

Conversation

@tomas-villagesql
Copy link
Copy Markdown
Member

move status vars to preview capability

@tomas-villagesql tomas-villagesql force-pushed the tomas/status-vars-preview branch 3 times, most recently from 4d0bda4 to 413f9c4 Compare May 14, 2026 09:38
@tomas-villagesql tomas-villagesql force-pushed the tomas/status-vars-preview branch from 413f9c4 to 7805c40 Compare May 14, 2026 19:42
Comment thread villagesql/veb/veb_file.h Outdated
vef_protocol_t max_protocol,
std::string &error_message);
vef_protocol_t max_protocol, std::string &error_message,
const villagesql::services::PopulateContext &ctx);
Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Can we make the context argument first? That is more idiomatic in my experience to have context args, in args, then out args. So also move the protocol in front, while you are at it move the max_protocol before registration.

Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

done

Comment thread villagesql/veb/veb_file.h Outdated
// ctx is passed through to on_depopulate for each capability.
// After this call, the ExtensionRegistration should not be used.
void unload_vef_extension(const ExtensionRegistration &registration);
void unload_vef_extension(const ExtensionRegistration &registration,
Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Here, too.

Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

done

static long long g_add_calls = 0;
static long long g_null_calls = 0;

static auto g_status_vars = sv::make_capability({
Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Can we do this as STATIC_VARS to be consistent with how we register other things in the builder.

Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

done

@tomas-villagesql tomas-villagesql enabled auto-merge (squash) May 15, 2026 15:43
@tomas-villagesql tomas-villagesql merged commit 88dc058 into main May 15, 2026
3 checks passed
@tomas-villagesql tomas-villagesql deleted the tomas/status-vars-preview branch May 15, 2026 15:48
@github-actions github-actions Bot locked and limited conversation to collaborators May 15, 2026
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants